package Singleton;

/**
 * 双重锁
 * @author Administrator
 *
 */
public class SingletonSyncLock {

	private static SingletonSyncLock instance; 
	
	private SingletonSyncLock(){}
	
	public static SingletonSyncLock getInstance(){
		
		if(instance == null){
			synchronized(SingletonSyncLock.class){
				
				if(instance == null)
					instance  = new SingletonSyncLock();
			}
		}
		
		return instance;
	}
	
	
}
